package com.synjones.handsetS8;

/**
 * Created by zhaodianbo on 2017-6-13.
 */
public class BarExeCmdResult {
    byte[] retArray;
    byte retByte;
    boolean success;
    public boolean isSuccess(){
        return success;
    }
    public BarExeCmdResult(byte retByte){
        this.retByte=retByte;
        if(retByte==0x6) success=true;
        else success=false;//0x15
    }

    @Override
    public String toString() {
        if(success)
            return "执行成功";
        return "执行失败:"+ util_debug.bytesToHexString(new byte[]{retByte});
    }
}
